package com.woniu.daiquhua.mapper;

import com.woniu.daiquhua.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uId);

    int insert(User record);

    User selectByPrimaryKey(Integer uId);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    @Select("select * from t_user where u_account=#{uAccount}")
    User login(String uAccount);

    int updatestatus(User user);

    @Select("select * from t_user where u_mobile=#{userMobile}")
    User selectMobile(String userMobile);

}